package com.rybbaby.tss.platform.sysCitys.service.imp;

import com.rybbaby.tss.core.web.service.imp.BaseServiceImp;
import com.rybbaby.tss.platform.sysCitys.dao.ISysCitysDao;
import com.rybbaby.tss.platform.sysCitys.entity.SysCitys;
import com.rybbaby.tss.platform.sysCitys.service.ISysCitysService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @description 全球城市数据库操作服务实现
 * 
 * @author 谢进伟
 * 
 * @createDate 2016-11-30 下午3:21:45
 */
@Service
@Transactional
public class SysCitysServiceImp extends BaseServiceImp<SysCitys>  implements ISysCitysService {

    @Autowired
    private ISysCitysDao dao;
    /**
     * 根据父级Id获取下级城市/区/县
     *
     * @param pId 父级Id
     * @return
     */
    @Override
    public List<SysCitys> getChildrens(String pId) {
        return dao.getChildrens(pId);
    }
	
}
